const mongoose = require('mongoose')


module.exports = new mongoose.Schema({
	
	articleTitle: {
		type: String,
		required: true
	},
	articleTime: {
		type: String,
		required: true
	},
	articleTag: {
		type: Array,
		required: true
	},
	articleContent: {
		type: String,
		required: true
	},
	articleDesc: {
		type: String,
		required: true
	},
	articleComment: [
		{
			nickName: String,
			email: String,
			content: String,
			children: {
				type: Array
			}
		}
	]
}, {
	collections: 'article'
})